package com.design.门面模式;

public class Computer {

	private CPU cpu;
	private Memory memory;
	private Disk disk;
	
	public Computer() {
		this.cpu = new CPU();
		this.memory = new Memory();
		this.disk = new Disk();
	}
	
	public void start() {
		System.out.println("电脑启动");
		cpu.start();
		disk.start();
		memory.start();
	}
	
	public void shutDown() {
		System.out.println("电脑关闭");
		cpu.shutDown();
		disk.shutDown();
		memory.shutDown();
	}
	
}
